﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ReferenceScheduler.ConferenceModule
{
    class Session
    {
        private string name;
        private int interval;
        private List<Talk> talkList;

        public Session(string name, int interval)
        {
            this.name = name;
            this.interval = interval;
        }

        public string ToString()
        {
            string myString = "";
            myString += "Session "+this.name + " in "+ this.interval + "mins" + "\r\n";
            
            for (int i = 0; i < talkList.Count; i++ )
            {
                myString += talkList[i].GetTitle() +" "+ talkList[i].GetInterval() + "\r\n";
            }

            myString += "\r\n";

            return myString;
        }

        public int GetInterval() {
            return interval;
        }

        public string GetName() {
            return name;
        }

        public void SetTalkList(List<Talk>talkList)
        {
            this.talkList = talkList;
        }
        
    }
}
